org.eclipse.vtp.desktop.projects.core.internals
Class WebService

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.WebService
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ObjectListener, WebServiceConstants, IVoiceToolsResource, IWebService

public class WebService
extends VoiceResource
implements IWebService, WebServiceConstants

This is a concrete implementation of IWebService and provides the default behavior of that interface.

Since:
2.1
Version:
1.0
Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.desktop.projects.core.internals.WebServiceConstants
ATTRIBUTE, ATTRIBUTE_GROUP, BASE, COMPLEX_TYPE, CONTENT, ELEMENT, EXTENSION, FAULT, GROUP, INPUT, ITEM_TYPE, LIST, MEMBER_TYPES, MESSAGE, NAME, NS_WSDL, NS_XSD, OPERATION, OUTPUT, PART, PORT, PORT_TYPE, REF, RESTRICTION, SCHEMA, SERVICE, SIMPLE_CONTENT, SIMPLE_TYPE, STRING, TARGET_NAMESPACE, TYPE, TYPES, UNION, VALUE, XMLNS
 
Constructor Summary
WebService(WebServiceSet webServiceSet, org.eclipse.core.resources.IFolder folder, org.eclipse.core.resources.IFile wsdlFile)
          Creates a new WebService.
 
Method Summary
 void delete()
           
protected  java.lang.String getGeneratedPackageName()
          Returns the package that the stubs are contained in.
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 IWebServicePort getWebServicePort(java.lang.String name)
          Returns the web service port with the specified name.
 java.util.List getWebServicePorts()
          Returns the set of IWebServicePorts that are defined for this web service.
 IWebServiceSet getWebServiceSet()
          Returns the IWebServiceSet that contains this web service.
 IWebServiceTypeSet getWebServiceTypeSet()
          Returns the IWebServiceTypeSet that is defined for this web service.
protected  void processWebServiceDescriptor()
          Ensures the WSDL file has been parsed.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebService

public WebService(WebServiceSet webServiceSet,
                  org.eclipse.core.resources.IFolder folder,
                  org.eclipse.core.resources.IFile wsdlFile)
           throws org.eclipse.core.runtime.CoreException
Creates a new WebService.

Parameters:
webServiceSet - The set that contains this web service.
folder - The eclipse folder resource this web service set represents.
wsdlFile - The eclipse file resource that describes this web service.
Throws:
org.eclipse.core.runtime.CoreException
Method Detail

getGeneratedPackageName

protected java.lang.String getGeneratedPackageName()
Returns the package that the stubs are contained in.

Returns:
The package that the stubs are contained in.

processWebServiceDescriptor

protected void processWebServiceDescriptor()
Ensures the WSDL file has been parsed.


getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getWebServicePorts

public java.util.List getWebServicePorts()
Description copied from interface: IWebService
Returns the set of IWebServicePorts that are defined for this web service.

Specified by:
getWebServicePorts in interface IWebService
Returns:
The set of IWebServicePorts that are defined for this web service.

getWebServicePort

public IWebServicePort getWebServicePort(java.lang.String name)
Description copied from interface: IWebService
Returns the web service port with the specified name.

Specified by:
getWebServicePort in interface IWebService
Parameters:
name - The name of the web service port to return.
Returns:
The web service port with the specified name.

getWebServiceTypeSet

public IWebServiceTypeSet getWebServiceTypeSet()
Description copied from interface: IWebService
Returns the IWebServiceTypeSet that is defined for this web service.

Specified by:
getWebServiceTypeSet in interface IWebService
Returns:
The IWebServiceTypeSet that is defined for this web service.

getWebServiceSet

public IWebServiceSet getWebServiceSet()
Description copied from interface: IWebService
Returns the IWebServiceSet that contains this web service.

Specified by:
getWebServiceSet in interface IWebService
Returns:
The IWebServiceSet that contains this web service.

delete

public void delete()
            throws org.eclipse.core.runtime.CoreException
Specified by:
delete in interface IWebService
Throws:
org.eclipse.core.runtime.CoreException